const { regClass } = Laya;
import { box_testBase } from "./box_test.generated";

@regClass()
export class box_test extends box_testBase {

    onAwake(): void {
        let ctl = this.img.getController("ctl");
        this.img.on(Laya.Event.CLICK, this, () => {
            ctl.selectedIndex = ctl.selectedIndex == 0 ? 1 : 0;
        })
    }
}